package com.fruit.mapper.goods;

import java.util.List;
import java.util.Map;

import com.fruit.pojo.goods.Goods;
import com.fruit.pojo.goods.GoodsTradePrice;
import com.fruit.pojo.goods.Supplier;

public interface GoodsMapper {
	/**
	 * 获取商品详细信息
	 * @param params
	 * @return
	 */
	Goods getGoodsDetail(Integer goodsId);
	
	/**
	 * 获取登录人默认地址
	 * @param params
	 * @return
	 */
	Map<String, Object> getDefaultAddress(int userId);
	
	/**
	 * 获取水果标签
	 * @param params
	 * @return
	 */
	List<Map<String, Object>> getFruitLable(Map<String, Object> params);
	
	/**
	 * 查询商品批发价
	 * @param params
	 * @return
	 * @author admin
	 * @version 2017
	 */
	List<GoodsTradePrice> getGoodsTradePrice(Map<String, Object> params);
	
	/**
	 * 获取价格范围
	 * @param params
	 * @return
	 */
	List<Map<String, Object>> getPriceRange(Integer goodsId);
	
	/**
	 * 获取供货商
	 * @param id
	 * @return
	 * @author admin
	 * @version 2017
	 */
	Supplier getSupplierById(int id);
	
	/**
	 * 获取商品参数
	 * @param params
	 * @return
	 */
	List<Map<String, Object>> getGoodsParameters(Integer goodsId);
	
}
